package com.arsn.myf.quartz.mapper;

import com.arsn.myf.quartz.entity.ScheduledJob;
import com.arsn.myf.quartz.vo.ScheduledJobVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 定时任务映射层
 * @author zhongrj
 * @since 2022-03-07
 */
@Mapper
public interface ScheduledJobMapper extends BaseMapper<ScheduledJob> {

    /**
     * 自定义定时任务的分页数据
     * @param page
     * @param scheduledJob
     * @return
     */
    IPage<ScheduledJobVO> selectPageScheduledJobList(@Param("page") Page<ScheduledJobVO> page,
                                                       @Param("scheduledJob") ScheduledJobVO scheduledJob);
}
